package com.winning.pmph.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;

@Data
@Table(name = "WORDS")
public class Words extends BaseEntity {
    /**
     * 逻辑删除  未删除
     */
    public static final int DELETED_NO = 0;
    /**
     * 逻辑删除  已删除
     */
    public static final int DELETED_YES = 1;
    /**
     * 未审核
     */
    public static final int PASS_NO = 0;
    /**
     * 审核通过
     */
    public static final int PASS_YES = 1;
    /**
     * 新建
     */
    public static final String STATUS_NEW = "新建";
    /**
     * 导入
     */
    public static final String STATUS_EXPORT = "导入";
    /**
     * 知识
     */

    public static final String STATUS_KNOWLEDGE = "知识库";
    /**
     * 术语
     */
    public static final String STATUS_TERM = "术语库";
    /**
     * 分类
     */
    public static final String STATUS_TAG = "分类";
    private static final long serialVersionUID = 1L;

    @TableId
    private String id;
    //术语id或知识id
    private String knowledgeId;
    //知识库id或术语库id
    private String knowledgeLibId;
    //词语名称
    private String name;
    @TableField(exist = false)
    private String nameBak;
    @TableField(exist = false)
    private String nameBak1;
    @TableField(exist = false)
    private String nameBak2;
    @TableField(exist = false)
    private String nameBak3;

    //英文名称
    private String englishName;
    @TableField(exist = false)
    private String englishNameBak;
    @TableField(exist = false)
    private String englishNameBak1;
    @TableField(exist = false)
    private String englishNameBak2;
    @TableField(exist = false)
    private String englishNameBak3;
    //同义词
    private String synonym;
    @TableField(exist = false)
    private String synonymBak;
    //词语来源
    private String sourceType;
    //分类id
    private String tag;
    @TableField(exist = false)
    private String dbTag;
    @TableField(exist = false)
    private String tagBak;
    //状态  0 未审核（草稿状态）  1 审核通过（正式状态）
    private int status;
    //是否删除 0  未删除 1 逻辑删除，放在回收站里
    private int deleted;
    @TableField(exist = false)
    private String tagName;
}
